home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / u_man / cat3 / Tk / configwind.z / configwind
Encoding:
Text File  |  2002-10-03  |  14.6 KB  |  265 lines

  1.  
  2.  
  3.  
  4. TTTTkkkk____CCCCoooonnnnffffiiiigggguuuurrrreeeeWWWWiiiinnnnddddoooowwww((((3333TTTTkkkk))))                                TTTTkkkk____CCCCoooonnnnffffiiiigggguuuurrrreeeeWWWWiiiinnnnddddoooowwww((((3333TTTTkkkk))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      Tk_ConfigureWindow, Tk_MoveWindow, Tk_ResizeWindow, Tk_MoveResizeWindow,
  10.      Tk_SetWindowBorderWidth, Tk_ChangeWindowAttributes,
  11.      Tk_SetWindowBackground, Tk_SetWindowBackgroundPixmap, Tk_SetWindowBorder,
  12.      Tk_SetWindowBorderPixmap, Tk_SetWindowColormap, Tk_DefineCursor,
  13.      Tk_UndefineCursor - change window configuration or attributes
  14.  
  15. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  16.      ####iiiinnnncccclllluuuuddddeeee <<<<ttttkkkk....hhhh>>>>
  17.  
  18.      TTTTkkkk____CCCCoooonnnnffffiiiigggguuuurrrreeeeWWWWiiiinnnnddddoooowwww(_t_k_w_i_n, _v_a_l_u_e_M_a_s_k, _v_a_l_u_e_P_t_r)
  19.  
  20.      TTTTkkkk____MMMMoooovvvveeeeWWWWiiiinnnnddddoooowwww(_t_k_w_i_n, _x, _y)
  21.  
  22.      TTTTkkkk____RRRReeeessssiiiizzzzeeeeWWWWiiiinnnnddddoooowwww(_t_k_w_i_n, _w_i_d_t_h, _h_e_i_g_h_t)
  23.  
  24.      TTTTkkkk____MMMMoooovvvveeeeRRRReeeessssiiiizzzzeeeeWWWWiiiinnnnddddoooowwww(_t_k_w_i_n, _x,  _y, _w_i_d_t_h, _h_e_i_g_h_t)
  25.  
  26.      TTTTkkkk____SSSSeeeettttWWWWiiiinnnnddddoooowwwwBBBBoooorrrrddddeeeerrrrWWWWiiiiddddtttthhhh(_t_k_w_i_n, _b_o_r_d_e_r_W_i_d_t_h)
  27.  
  28.      TTTTkkkk____CCCChhhhaaaannnnggggeeeeWWWWiiiinnnnddddoooowwwwAAAAttttttttrrrriiiibbbbuuuutttteeeessss(_t_k_w_i_n, _v_a_l_u_e_M_a_s_k, _a_t_t_s_P_t_r)
  29.  
  30.      TTTTkkkk____SSSSeeeettttWWWWiiiinnnnddddoooowwwwBBBBaaaacccckkkkggggrrrroooouuuunnnndddd(_t_k_w_i_n, _p_i_x_e_l)
  31.  
  32.      TTTTkkkk____SSSSeeeettttWWWWiiiinnnnddddoooowwwwBBBBaaaacccckkkkggggrrrroooouuuunnnnddddPPPPiiiixxxxmmmmaaaapppp(_t_k_w_i_n, _p_i_x_m_a_p)
  33.  
  34.      TTTTkkkk____SSSSeeeettttWWWWiiiinnnnddddoooowwwwBBBBoooorrrrddddeeeerrrr(_t_k_w_i_n, _p_i_x_e_l)
  35.  
  36.      TTTTkkkk____SSSSeeeettttWWWWiiiinnnnddddoooowwwwBBBBoooorrrrddddeeeerrrrPPPPiiiixxxxmmmmaaaapppp(_t_k_w_i_n, _p_i_x_m_a_p)
  37.  
  38.      TTTTkkkk____SSSSeeeettttWWWWiiiinnnnddddoooowwwwCCCCoooolllloooorrrrmmmmaaaapppp(_t_k_w_i_n, _c_o_l_o_r_m_a_p)
  39.  
  40.      TTTTkkkk____DDDDeeeeffffiiiinnnneeeeCCCCuuuurrrrssssoooorrrr(_t_k_w_i_n, _c_u_r_s_o_r)
  41.  
  42.      TTTTkkkk____UUUUnnnnddddeeeeffffiiiinnnneeeeCCCCuuuurrrrssssoooorrrr(_t_k_w_i_n)
  43.  
  44. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  45.      Tk_Window              _t_k_w_i_n         (in)      Token for window.
  46.  
  47.      unsigned int           _v_a_l_u_e_M_a_s_k     (in)      OR-ed mask of values like
  48.                                                     CCCCWWWWXXXX or CCCCWWWWBBBBoooorrrrddddeeeerrrrPPPPiiiixxxxeeeellll,
  49.                                                     indicating which fields of
  50.                                                     *_v_a_l_u_e_P_t_r or *_a_t_t_s_P_t_r to
  51.                                                     use.
  52.  
  53.      XWindowChanges         *_v_a_l_u_e_P_t_r     (in)      Points to a structure
  54.                                                     containing new values for
  55.                                                     the configuration
  56.                                                     parameters selected by
  57.                                                     _v_a_l_u_e_M_a_s_k.  Fields not
  58.                                                     selected by _v_a_l_u_e_M_a_s_k are
  59.                                                     ignored.
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. TTTTkkkk____CCCCoooonnnnffffiiiigggguuuurrrreeeeWWWWiiiinnnnddddoooowwww((((3333TTTTkkkk))))                                TTTTkkkk____CCCCoooonnnnffffiiiigggguuuurrrreeeeWWWWiiiinnnnddddoooowwww((((3333TTTTkkkk))))
  71.  
  72.  
  73.  
  74.      int                    _x             (in)      New x-coordinate for
  75.                                                     _t_k_w_i_n's top left pixel
  76.                                                     (including border, if any)
  77.                                                     within tkwin's parent.
  78.  
  79.      int                    _y             (in)      New y-coordinate for
  80.                                                     _t_k_w_i_n's top left pixel
  81.                                                     (including border, if any)
  82.                                                     within tkwin's parent.
  83.  
  84.      int                    _w_i_d_t_h         (in)      New width for _t_k_w_i_n       |
  85.                                                     (interior, not including  |
  86.                                                     border).
  87.  
  88.      int                    _h_e_i_g_h_t        (in)      New height for _t_k_w_i_n      |
  89.                                                     (interior, not including  |
  90.                                                     border).
  91.  
  92.      int                    _b_o_r_d_e_r_W_i_d_t_h   (in)      New width for _t_k_w_i_n's     |
  93.                                                     border.
  94.  
  95.      XSetWindowAttributes   *_a_t_t_s_P_t_r      (in)      Points to a structure
  96.                                                     containing new values for
  97.                                                     the attributes given by
  98.                                                     the _v_a_l_u_e_M_a_s_k argument.
  99.                                                     Attributes not selected by
  100.                                                     _v_a_l_u_e_M_a_s_k are ignored.
  101.  
  102.      unsigned long          _p_i_x_e_l         (in)      New background or border
  103.                                                     color for window.
  104.  
  105.      Pixmap                 _p_i_x_m_a_p        (in)      New pixmap to use for
  106.                                                     background or border of
  107.                                                     _t_k_w_i_n.  WARNING:  cannot
  108.                                                     necessarily be deleted
  109.                                                     immediately, as for Xlib
  110.                                                     calls.  See note below.
  111.  
  112.      Colormap               _c_o_l_o_r_m_a_p      (in)      New colormap to use for
  113.                                                     _t_k_w_i_n.
  114.  
  115.      Cursor                 _c_u_r_s_o_r        (in)      New cursor to use for
  116.                                                     _t_k_w_i_n.  If NNNNoooonnnneeee is
  117.                                                     specified, then _t_k_w_i_n will
  118.                                                     not have its own cursor;
  119.                                                     it will use the cursor of
  120.                                                     its parent.
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. TTTTkkkk____CCCCoooonnnnffffiiiigggguuuurrrreeeeWWWWiiiinnnnddddoooowwww((((3333TTTTkkkk))))                                TTTTkkkk____CCCCoooonnnnffffiiiigggguuuurrrreeeeWWWWiiiinnnnddddoooowwww((((3333TTTTkkkk))))
  137.  
  138.  
  139.  
  140. DESCRIPTION
  141.      These procedures are analogous to the X library procedures with similar
  142.      names, such as XXXXCCCCoooonnnnffffiiiigggguuuurrrreeeeWWWWiiiinnnnddddoooowwww.  Each one of the above procedures calls
  143.      the corresponding X procedure and also saves the configuration
  144.      information in Tk's local structure for the window.  This allows the
  145.      information to be retrieved quickly by the application (using macros such
  146.      as TTTTkkkk____XXXX and TTTTkkkk____HHHHeeeeiiiigggghhhhtttt) without having to contact the X server.  In
  147.      addition, if no X window has actually been created for _t_k_w_i_n yet, these
  148.      procedures do not issue X operations or cause event handlers to be
  149.      invoked;  they save the information in Tk's local structure for the
  150.      window;  when the window is created later, the saved information will be
  151.      used to configure the window.
  152.  
  153.      See the X library documentation for details on what these procedures do
  154.      and how they use their arguments.
  155.  
  156.      In the procedures TTTTkkkk____CCCCoooonnnnffffiiiigggguuuurrrreeeeWWWWiiiinnnnddddoooowwww, TTTTkkkk____MMMMoooovvvveeeeWWWWiiiinnnnddddoooowwww, TTTTkkkk____RRRReeeessssiiiizzzzeeeeWWWWiiiinnnnddddoooowwww,
  157.      TTTTkkkk____MMMMoooovvvveeeeRRRReeeessssiiiizzzzeeeeWWWWiiiinnnnddddoooowwww, and TTTTkkkk____SSSSeeeettttWWWWiiiinnnnddddoooowwwwBBBBoooorrrrddddeeeerrrrWWWWiiiiddddtttthhhh, if _t_k_w_i_n is an internal
  158.      window then event handlers interested in configure events are invoked
  159.      immediately, before the procedure returns.  If _t_k_w_i_n is a top-level      |
  160.      window then the event handlers will be invoked later, after X has seen
  161.      the request and returned an event for it.
  162.  
  163.      Applications using Tk should never call procedures like XXXXCCCCoooonnnnffffiiiigggguuuurrrreeeeWWWWiiiinnnnddddoooowwww
  164.      directly;  they should always use the corresponding Tk procedures.
  165.  
  166.      The size and location of a window should only be modified by the
  167.      appropriate geometry manager for that window and never by a window itself
  168.      (but see TTTTkkkk____MMMMoooovvvveeeeTTTToooopppplllleeeevvvveeeellllWWWWiiiinnnnddddoooowwww for moving a top-level window).
  169.  
  170.      You may not use TTTTkkkk____CCCCoooonnnnffffiiiigggguuuurrrreeeeWWWWiiiinnnnddddoooowwww to change the stacking order of a
  171.      window (_v_a_l_u_e_M_a_s_k may not contain the CCCCWWWWSSSSiiiibbbblllliiiinnnngggg or CCCCWWWWSSSSttttaaaacccckkkkMMMMooooddddeeee bits).  To
  172.      change the stacking order, use the procedure TTTTkkkk____RRRReeeessssttttaaaacccckkkkWWWWiiiinnnnddddoooowwww.
  173.  
  174.      The procedure TTTTkkkk____SSSSeeeettttWWWWiiiinnnnddddoooowwwwCCCCoooolllloooorrrrmmmmaaaapppp will automatically add _t_k_w_i_n to the   |
  175.      TTTTKKKK____CCCCOOOOLLLLOOOORRRRMMMMAAAAPPPP____WWWWIIIINNNNDDDDOOOOWWWWSSSS property of its nearest top-level ancestor if the new|
  176.      colormap is different from that of _t_k_w_i_n's parent and _t_k_w_i_n isn't already|
  177.      in the TTTTKKKK____CCCCOOOOLLLLOOOORRRRMMMMAAAAPPPP____WWWWIIIINNNNDDDDOOOOWWWWSSSS property.
  178.  
  179.  
  180. BBBBUUUUGGGGSSSS
  181.      TTTTkkkk____SSSSeeeettttWWWWiiiinnnnddddoooowwwwBBBBaaaacccckkkkggggrrrroooouuuunnnnddddPPPPiiiixxxxmmmmaaaapppp and TTTTkkkk____SSSSeeeettttWWWWiiiinnnnddddoooowwwwBBBBoooorrrrddddeeeerrrrPPPPiiiixxxxmmmmaaaapppp differ slightly
  182.      from their Xlib counterparts in that the _p_i_x_m_a_p argument may not
  183.      necessarily be deleted immediately after calling one of these procedures.
  184.      This is because _t_k_w_i_n's window may not exist yet at the time of the call,
  185.      in which case _p_i_x_m_a_p is merely saved and used later when _t_k_w_i_n's window
  186.      is actually created.  If you wish to delete _p_i_x_m_a_p, then call
  187.      TTTTkkkk____MMMMaaaakkkkeeeeWWWWiiiinnnnddddoooowwwwEEEExxxxiiiisssstttt first to be sure that _t_k_w_i_n's window exists and _p_i_x_m_a_p
  188.      has been passed to the X server.
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. TTTTkkkk____CCCCoooonnnnffffiiiigggguuuurrrreeeeWWWWiiiinnnnddddoooowwww((((3333TTTTkkkk))))                                TTTTkkkk____CCCCoooonnnnffffiiiigggguuuurrrreeeeWWWWiiiinnnnddddoooowwww((((3333TTTTkkkk))))
  203.  
  204.  
  205.  
  206.      A similar problem occurs for the _c_u_r_s_o_r argument passed to
  207.      TTTTkkkk____DDDDeeeeffffiiiinnnneeeeCCCCuuuurrrrssssoooorrrr.  The solution is the same as for pixmaps above:  call
  208.      TTTTkkkk____MMMMaaaakkkkeeeeWWWWiiiinnnnddddoooowwwwEEEExxxxiiiisssstttt before freeing the cursor.
  209.  
  210.  
  211. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  212.      Tk_MoveToplevelWindow, Tk_RestackWindow
  213.  
  214.  
  215. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  216.      attributes, border, color, configure, height, pixel, pixmap, width,
  217.      window, x, y
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.